package com.huluobo.a2109kotlinshopping.mine

import androidx.lifecycle.MutableLiveData
import com.huluobo.a2109kotlinshopping.base.BaseViewModel

/**
 *  Created by LC on 2024/1/23.
 */
class MineViewModel : BaseViewModel() {
    private val repo = MineRepo()
    val updateAddressSuccess = MutableLiveData<MineAddressBeanResult>()
    val updateAddressFailed = MutableLiveData<String>()

    fun updateAddress(address: String) {
        repo.updateAddress(address, updateAddressSuccess, updateAddressFailed)
    }
}